package wahadlo.nowe.controllers;

public class DataValidatorImpl implements DataValidator {

	public boolean absoluteGreatThanZero(Double value) {
		if (value == null)
			return false;
		return Math.abs(value) > 0;
	}

	public boolean greatEqualsThanZero(Double value) {
		if (value == null)
			return false;
		return value >= 0;
	}

	public boolean greatThanZero(Double value) {
		if (value == null)
			return false;
		return value > 0;
	}

	public boolean lessEqualsThanZero(Double value) {
		if (value == null)
			return false;
		return value <= 0;
	}

	public boolean lessThanZero(Double value) {
		if (value == null)
			return false;
		return value < 0;
	}

}
